package com.letfox.log.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.letfox.log.dao.OperationLogMapper;
import com.letfox.log.model.LOGOperation;
import com.letfox.log.service.OperationLogService;

@Service
public class OperationLogServiceImpl implements OperationLogService {

	@Autowired
	private OperationLogMapper operationLogMapper;
	
	@Override
	public int insert(LOGOperation operationLog) {
		return operationLogMapper.insert(operationLog);
	}

	@Override
	public int update(LOGOperation operationLog) {
		return operationLogMapper.update(operationLog);
	}

	@Override
	public int deleteById(Long id) {
		return operationLogMapper.deleteById(id);
	}
	
	@Override
	public int deleteByIds(String ids) {
		return operationLogMapper.deleteByIds(ids);
	}

	@Override
	public LOGOperation findById(Long id) {
		return operationLogMapper.selectById(id);
	}

	@Override
	public List<LOGOperation> findList(LOGOperation operationLog) {
		return operationLogMapper.selectList(operationLog);
	}

}
